var icCardReaderParamsJs = function(targetObj){
	this.targetObj = targetObj;
	this.sysUtils = new kendoUtils();
	this.init();
	return this;
};

icCardReaderParamsJs.prototype={
		init:function(){
			var bindFieldArray = this.sysUtils.getBindFieldArray(this.targetObj);
			this.bindBaseModels = new bindBaseModel(null,bindFieldArray,null,null);
			this.sysUtils.bindDoucment(this.bindBaseModels,this.targetObj,this);
			this.createPlugIn();
		},
		createPlugIn:function(){
			this.createDropDownList("readHead", 0, 16, "#");
			this.createDropDownList("sectorNumber", 0, 15, "#");
			this.createDropDownList("startSectorNumber", 0, 15, "#");
			this.sysUtils.setBindFieldValue({"icReadξoneξreadHead":0,"icReadξoneξsectorNumber":15,"icReadξoneξstartSectorNumber":0});
		},
		createDropDownList:function(div,min,max,format){
			this.targetObj.find("#" + div).kendoNumericTextBox({
				min:min,
				max:max,
				format:format
			});
		},
		/**
		 * 把界面元素设置为不可用
		 */
		disabledHtml:function(){
			this.targetObj.find("#readHead").data("kendoNumericTextBox").enable(false);
			this.targetObj.find("#sectorNumber").data("kendoNumericTextBox").enable(false);
			this.targetObj.find("#startSectorNumber").data("kendoNumericTextBox").enable(false);
		},
		/**
		 * 设置参数界面的值
		 * @param jsonObj
		 */
		setParamsValue:function(jsonObj){
			this.sysUtils.setBindFieldValue(jsonObj);
		},
		/**
		 * 获取当前界面的参数值
		 * @returns
		 */
		getDeviceParmasJson:function(){
			if(validityForm(this.targetObj)){
				var paramsJson = this.sysUtils.getBindDocJson();
				return paramsJson;
			}
			return null;
		}
}
